home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Tele / C / Comet2.1.3.cpt / include / h19.h < prev    next >
Text File  |  1991-10-23  |  2KB  |  78 lines

  1. /*  Copyright 1984 by the Massachusetts Institute of Technology  */
  2. /*  See permission and disclaimer notice in file "notice.h"  */
  3.  
  4. /* 9/12/87 kevin added NOPORT */
  5.  
  6. /*
  7.     Copyright Cornell University 1986.  All rights are reserved.
  8.  
  9.     As of 4/10/86:
  10.     This source file may have no changes from the M.I.T original
  11.     other than this notice; but it has been tested as part of 
  12.     Cornell's Aztec-C port.  See notice.h
  13.  
  14. */
  15.  
  16. #include    <notice.h>
  17.  
  18. #define NUL     0x00
  19. #define CTLA 0x01
  20. #define CTLB 0x02
  21. #define CTLC 0x03
  22. #define CTLD 0x04
  23. #define CTLE 0x05
  24. #define CTLF 0x06
  25. #define CTLG 0x07
  26. #define CTLH 0x08
  27. #define CTLI 0x09
  28. #define CTLJ 0x0a
  29. #define CTLK 0x0b
  30. #define CTLL 0x0c
  31. #define CTLM 0x0d
  32. #define CTLN 0x0e
  33. #define CTLO 0x0f
  34. #define CTLP 0x10
  35. #define CTLQ 0x11
  36. #define CTLR 0x12
  37. #define CTLS 0x13
  38. #define CTLT 0x14
  39. #define CTLU 0x15
  40. #define CTLV 0x16
  41. #define CTLW 0x17
  42. #define CTLX 0x18
  43. #define CTLY 0x19
  44. #define CTLZ 0x1a
  45. #define CTLLBRACK         0x1b
  46. #define CTLBACKSLASH     0x1c
  47. #define CTLRBRACK        0x1d
  48. #define CTLHAT            0x1e
  49. #define CTLUNDERSCORE    0x1f
  50. #define DEL                0x7f
  51.  
  52. #define ETX          3        /* enter key */
  53. #define    BELL      7        /* bell */
  54. #define    BS          8        /* back space */
  55. #define    TAB          9        /* tab */
  56. #define    LF         10        /* line feed */
  57. #define    CR         13        /* carriage return */
  58. #define FF        014        /* form feed */
  59. #define    X_ON    021        /* x-on */
  60. #define    X_OFF    023        /* x-off */
  61. #define    ESC         27        /* escape */
  62. #define    SPACE     32        /* space */
  63. #define    DELETE    127        /* delete */
  64.  
  65. /* These are special values that are returned from the keyboard
  66.  * when unusual keys are pressed.
  67.  */
  68.  
  69. #define    NONE    -1
  70. #define    C_BREAK    -2
  71. #define    F9        -3
  72. #define    F10        -4
  73.  
  74. extern unsigned pos;
  75.  
  76. #define    NOPORT    1
  77.     /* no serial port should be opened until keyDown */
  78.